#ifndef __NBIOT_H__
#define __NBIOT_H__

#define NBIOT_EVT_START 0
#define NBIOT_EVT_POWERDOWN 1
#define NBIOT_EVT_REDY 2
#define NBIOT_EVT_RUN 3
#define NBIOT_EVT_SHUTDOWN 4
#define NBIOT_EVT_POWEROFF 5
#define NBIOT_EVT_REBOOT 6


/* the precompiler produces an enum of the states */
#include "fsm_stat.h"
#include "nbiot_stt.h"


void nbiot_task_init(void);
bool nbiot_is_shutdown(void);
int8_t nbiot_get_sn(uint8_t* sn);
uint8_t nbiot_get_csq(void);
uint8_t nbiot_send_evt(uint16_t event, int16_t data);
void nbiot_reboot_req(void);
void nbiot_suspend(void);
#endif